package com.globallogic.vkulyk.SSHTool;

import static org.junit.Assert.*;

import org.junit.*;

import java.util.ArrayList;

public class Unit_SocketsAndActionsDataKeeper extends SSHToolTester {
	private static final String ACTION_LIST_NOT_EQUALS = "Action list not equals";
	private static final String SOCKETS_LIST_NOT_EQUALS = "Sockets list not equals";
	private SocketsAndActionsDataKeeper socketsAndActionsData = null;
	private ArrayList<SocketDataKeeper> socketsData = null;
	private ArrayList<ActionDataKeeper> actionsData = null;

	@Before
	public void setup() {
		setVarsFromPropertiesFile("testData/testing.properties");
		socketsData = new ArrayList<SocketDataKeeper>();
		actionsData = new ArrayList<ActionDataKeeper>();
		socketsAndActionsData = new SocketsAndActionsDataKeeper(socketsData, actionsData);
	}

	@Test
	public void shouldReturnCorrectSockets_whenCallGetSockets() {
		assertEquals(SOCKETS_LIST_NOT_EQUALS, socketsData, socketsAndActionsData.getSockets());
	}
	
	@Test
	public void shouldReturnCorrectActions_whenCallGetActions() {
		assertEquals(ACTION_LIST_NOT_EQUALS, socketsData, socketsAndActionsData.getActions());
	}

}
